package com.taxi.serviceauth.controller;

import com.taxi.common.dto.ResponseResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Ruomeng
 * @Date: 2024/12/18
 * @Description : online-taxi
 * @Version: 1.0
 */
@RestController
@RequestMapping("/verification-code")
public class VerificationCodeController {

    /**
     * 发送验证码
     *
     * @param verificationCodeDTO
     * @return
     */
//    @PostMapping("/generator")
//    public ResponseResult verificationCode(@Validated @RequestBody SendVerificationCodeDTO verificationCodeDTO) {
//        String phone = verificationCodeDTO.getPhone();
//        String identity = verificationCodeDTO.getIdentity();
//        return verificationCodeService.generatorCode(phone, identity);
//    }
}
